//
//  XDQuickLookViewController.h
//  Pods-XDQuickLook_Example
//
//  Created by XiaoDev on 2018/11/30.
//

#import <UIKit/UIKit.h>
#import <QuickLook/QuickLook.h>
NS_ASSUME_NONNULL_BEGIN
@protocol XDQuickLookVCDelegate;

@interface XDQuickLookViewController : QLPreviewController

@property(nonatomic, weak, nullable) id <XDQuickLookVCDelegate> xDelegate;
@property (nonatomic, assign)NSInteger currentIndex;

@end
#pragma mark - delegate
@protocol XDQuickLookVCDelegate <NSObject>
- (NSInteger)xdnumberOfItemsInQuickLookController:(XDQuickLookViewController *)controller;
- (NSString *)xdQuickLookController:(XDQuickLookViewController *)controller ItemAtIndex:(NSInteger)index;

- (void)xdQuickLookVCWillDismiss:(XDQuickLookViewController *)controller currentIndex:(NSInteger)index;

@end
NS_ASSUME_NONNULL_END
